package hellotest;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import teacher.clazz.student.service.CSTservice;

public class helloWorld {

	private ApplicationContext ctx = null;

	private CSTservice csTservice;

	{
		ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		csTservice = ctx.getBean(CSTservice.class);
	}

	@Test
	//通过老师id来查找学生信息
	public void hellotest1() {

		csTservice.teacherId(1);
	}

}
